package com.cqie.teacherserver.controller;


import com.cqie.campuscommon.result.Result;
import com.cqie.teacherserver.service.ITeacherTeachingStatisticsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 教学统计信息(按老师) 前端控制器
 * </p>
 *
 * @author zhangr132
 * @since 2024-05-31
 */
@Slf4j
@Api(tags = "教学统计信息(按老师)管理")
@RestController
public class TeacherTeachingStatisticsController {
    @Autowired
    private ITeacherTeachingStatisticsService teacherTeachingStatisticsService;

    @ApiOperation("教师授课信息获取")
    @RequestMapping("/getTeacherCourseInfo")
    public Result getTeacherCourseInfo(String teacherCode){
        log.info("----------正在获取教师授课信息----------");
        Result result = teacherTeachingStatisticsService.getTeacherCourseInfo(teacherCode);
        log.info("----------处理获取教师授课信息请求结束----------");
        return result;
    }

}
